package tech.aistar.corejava.day05.day05work;

/**
 * Created by 豆梦寒 on 2019/7/22.
 */
public class AccountTest {
    public static void main(String[] args) {

        //信用账户
        Account a1 = new Account(110987546,"账户1","110",110,true,11000,20);
        //存储账户
        Account a2 = new Account(120321459,"账户2","120",1234567890,false,0,500);

        a1.setAccTelno(1833893849);
        a2.depoist(1000);
        a2.withdrawl("120",500);
        System.out.println("账户号码："+a1.getAccNo()+" 用户："+a1.getAccName()+" 手机号码："+a1.getAccTelno()+" 用户余额："+a1.getAccbalance()+" 账户类型："+a1.getAccType());
        System.out.println("账户号码："+a2.getAccNo()+" 用户："+a2.getAccName()+" 手机号码："+a2.getAccTelno()+" 用户余额："+a2.getAccbalance()+" 账户类型："+a2.getAccType());




    }
}
